﻿using System;
using System.Windows.Forms;

namespace 控件缩放算法
{
    public partial class Form1 : Form
    {
        //声明控件缩放器实例
        WindowZoomer zoomer;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //对窗口应用控件缩放器
            zoomer = new WindowZoomer(this, false);
        }

        private void TrackBar1_ValueChanged(object sender, EventArgs e)
        {
            progressBar1.Value = trackBar1.Value;
        }
    }
}
